/**
 * 
 */
package vehicleEntity;

import java.util.Calendar;
import java.util.Date;
import java.text.SimpleDateFormat;

import validator.Validator;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 * @author Sashiraj Dhanarajan
 *
 */
public class PurchasedVehicleDisplay {

	private SimpleIntegerProperty vehicleId;
	private String purchasedDate;
	private String   manufDate;
	private SimpleDoubleProperty  vehicleIns;
	private SimpleDoubleProperty  amount;
	private SimpleStringProperty  VehicleName;
	private SimpleStringProperty  RegNo;
	private SimpleStringProperty  VIN;
	private SimpleStringProperty  vehicleClass;
	private SimpleStringProperty  vehicleType;
	


	public PurchasedVehicleDisplay(int int1, Date string1, Date string2, Double double1, Double double2,
			String string3, String string4, String string5,String string6, String string7 ) {
		vehicleId = new SimpleIntegerProperty(int1);
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		format.format(string1);
		Calendar cal = Calendar.getInstance();
		cal.setTime(string1);
		purchasedDate = format.format(string1);
		manufDate = format.format(string2);
		vehicleIns = new SimpleDoubleProperty(Validator.formatDouble(double1));
		amount = new SimpleDoubleProperty(Validator.formatDouble(double2));
		VehicleName = new SimpleStringProperty(string3);
		RegNo = new SimpleStringProperty(string4);
		VIN = new SimpleStringProperty(string5);
		vehicleClass = new SimpleStringProperty(string6);
		vehicleType = new SimpleStringProperty(string7);

	}


	public int getVehicleId() {
		return vehicleId.getValue();
	}


	public void setVehicleId(SimpleIntegerProperty vehicleId) {
		this.vehicleId = vehicleId;
	}


	public String getPurchasedDate() {
		return purchasedDate;
	}


	public void setPurchasedDate(String purchasedDate) {
		this.purchasedDate = purchasedDate;
	}


	public String getManufDate() {
		return manufDate;
	}


	public void setManufDate(String manufDate) {
		this.manufDate = manufDate;
	}


	public Double getVehicleIns() {
		return vehicleIns.getValue();
	}


	public void setVehicleIns(SimpleDoubleProperty vehicleIns) {
		this.vehicleIns = vehicleIns;
	}


	public Double getAmount() {
		return amount.getValue();
	}


	public void setAmount(SimpleDoubleProperty amount) {
		this.amount = amount;
	}


	public String getVehicleName() {
		return VehicleName.getValue();
	}


	public void setVehicleName(SimpleStringProperty vehicleName) {
		VehicleName = vehicleName;
	}


	public String getRegNo() {
		return RegNo.getValue();
	}


	public void setRegNo(SimpleStringProperty regNo) {
		RegNo = regNo;
	}


	public String getVIN() {
		return VIN.getValue();
	}


	public void setVIN(SimpleStringProperty vIN) {
		VIN = vIN;
	}


	public String getVehicleClass() {
		return vehicleClass.getValue();
	}


	public void setVehicleClass(SimpleStringProperty vehicleClass) {
		this.vehicleClass = vehicleClass;
	}


	public String getVehicleType() {
		return vehicleType.getValue();
	}


	public void setVehicleType(SimpleStringProperty vehicleType) {
		this.vehicleType = vehicleType;
	}
	

}
